<?php
/**
 * Simple utility that saves system configuration to a file.
 *
 * @author Martin "DevelX" Jurča
 * @version 2009-01-20
 */
interface ConfigStorage {
    /**
     * Saves system configuration to a file. Also check whether the given
     * configuration is valid or not.
     *
     * @param Array $config System configuration.
     * @param String $root Filesystem root directory for the CMS.
     * @return boolean True on success, false otherwise.
     */
    public static function save($config, $root = false);

    /**
     * Saves changes of system configuration to a file.
     *
     * @param Array $changes Changes in the system configuration.
     * @return boolean True on success, false otherwise.
     */
    public static function applyChanges($changes);
}
?>
